//
// Created by yunnan xu on 2020/11/17.
//

#include "RenderItem.h"
#include "Buffer.h"
#include "GLESUtils.h"
#include "Model.h"
#include "DummyModel.h"
#include "MeshModel.h"
#include "Texture.h"
#include "Scene.h"
#include "Camera.h"
#include <gles3/gl32.h>
#include <ext.hpp>


void IRenderItem::AppendTexture(const std::shared_ptr<Texture>& texture)
{
    textureList.emplace_back(texture);
}

std::shared_ptr<Model> IRenderItem::GetModel()
{
    return model;
}

std::shared_ptr<Texture> IRenderItem::GetTexture(int index)
{
    return textureList[index];
}